home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / doorware / kspslp37.zip / DIALBBS.CMD < prev    next >
OS/2 REXX Batch file  |  1995-06-19  |  1KB  |  70 lines

  1. # Script file for Trumpet Winsock, Version 2.0
  2. # Dials PCBoard BBS and starts SLIP door.
  3. # -------------------------------------------
  4. #
  5. # initialize modem and dial the BBS number
  6. #
  7. output atz1\r
  8. input 10 OK
  9. output atdt14085545197\r
  10. #
  11. # wait for "CONNECT"
  12. #
  13. input 60 CONNECT
  14. #
  15. #  wait till it's safe to send because some modem's hang up
  16. #  if you transmit during the connection phase
  17. #
  18. wait 60 dcd
  19. #
  20. #  wait for: "Do you want graphics (Enter)=default?"
  21. #
  22. input 45 default
  23. output nq\r
  24. #
  25. # wait for: "What is your first name?"
  26. #
  27. input 30 name
  28. username First Name:
  29. output \u\r
  30. #
  31. # wait for: "What is your last name?"
  32. #
  33. input 5 name
  34. username Last Name:
  35. output \u\r
  36. #
  37. # wait for: "Password (Dots will echo)?"
  38. #
  39. input 10 echo
  40. password Password:
  41. output \p\r
  42. #
  43. # wait for: "Scan Message Base Since 'Last Read' (Enter)=yes?"
  44. # then respond with "N(o)".
  45. #
  46. if [input 5 yes]
  47.    output n\r
  48. end
  49. #
  50. # wait for: "Main Board Command?" then issue command to run KSP-SLIP
  51. #
  52. input 30 Command
  53. output slip\r
  54. #
  55. # wait for: the word "address" from STARTUP.MSG display file,
  56. # then grab the IP address that follows.
  57. #
  58. input 30 address
  59. address 30
  60. #
  61. # wait for: "Press any key to begin:" then respond with a carriage return.
  62. #
  63. input 30 Press
  64. output \r
  65. #
  66. # we are now connected, logged in and in SLIP mode.
  67. #
  68. display Your IP address is: \i\n
  69. online
  70.